package cn.lngaosu.lwyd.module.integration.job;

import cn.lngaosu.lwyd.framework.quartz.core.handler.JobHandler;
import cn.lngaosu.lwyd.framework.tenant.core.job.TenantJob;
import cn.lngaosu.lwyd.module.integration.service.toutiaoaccount.ToutiaoAccountService;
import cn.lngaosu.lwyd.module.integration.service.weibocommentsshow.WeiboCommentsShowService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ToutiaoAccountJob implements JobHandler {

    @Resource
    private ToutiaoAccountService toutiaoAccountService;

    @Override
    @TenantJob
    public String execute(String param) {
        toutiaoAccountService.syncToutiaoAccount();
        return "同步今日头条账号基本信息";
    }

}
